projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
718547c
)
libxl: define errors as an enum instead of define random values.
author
Keir Fraser
<keir.fraser@citrix.com>
Wed, 30 Dec 2009 12:46:16 +0000
(12:46 +0000)
committer
Keir Fraser
<keir.fraser@citrix.com>
Wed, 30 Dec 2009 12:46:16 +0000
(12:46 +0000)
Signed-off-by: Vincent Hanquez <vincent.hanquez@eu.citrix.com>
tools/libxl/libxl.h
patch
|
blob
|
history
diff --git
a/tools/libxl/libxl.h
b/tools/libxl/libxl.h
index 7bfa4e594109545c0df03aa850f54c52fb2a9bf0..7318b5184d2a72d318e027f0dee781649714ae1a 100644
(file)
--- a/
tools/libxl/libxl.h
+++ b/
tools/libxl/libxl.h
@@
-226,10
+226,13
@@
typedef struct {
bool power_mgmt;
} libxl_device_pci;
-#define ERROR_FAIL (-2)
-#define ERROR_NI (-101)
-#define ERROR_NOMEM (-1032)
-#define ERROR_INVAL (-1245)
+enum {
+ ERROR_VERSION = -1,
+ ERROR_FAIL = -2,
+ ERROR_NI = -3,
+ ERROR_NOMEM = -4,
+ ERROR_INVAL = -5,
+};
/* context functions */
int libxl_ctx_init(struct libxl_ctx *ctx);